function ab_act(){
	$('.ab-slide ul.list li.active').removeClass('active');
	$('.ab-slide ul.list li:eq(0)').addClass('active');
}

$(function(){

	$('.main-slide ul.frames').carouFredSel({
		items: 1,
		auto: {play:true, duration: 700}
	});
	$('.ab-slide ul.list').carouFredSel({
		items: 6,
		scroll: {items:1, duration: 0},
		auto: false,
		prev: ".ab-slide-left",
		next: ".ab-slide-right"
	});
	if($('.scroll-pane').html() != null) {
		$('.scroll-pane').jScrollPane({showArrows:true});
		var ph = $('.scroll-pane').parents(".jScrollPaneContainer").height();
		$('.scroll-pane').wrap('<div class="scroll-pane-i" />').parent('.scroll-pane-i').css('height',ph);
		$('.scroll-pane').css('height',0);
	}
	ab_act();
	$('.ab-slide-right,.ab-slide-left').click(function(){ ab_act(); });
	

/*
	$('ul.slider').carouFredSel({
		items: 1,
		auto: false,
		prev: ".slide-prev",
		next: ".slide-next"
	});
*/
});